<?php
namespace Card\Api;
class WwsApi {
    

    /**
     * 薇薇晒用户与平台用户统一
     * @return [type] [description]
     */
	public function checkUserExist($data) {

		$arr = array(
			'phoneNumber'			=>	$data['phone'],
			'clientIp'				=>	getIp()
		);
		$result = member_json_post_http_curl('common/loginOrRegister.c',$arr);
		
		if(isset($result['result']) && $result['result'] === 1) {
			return array('status'=>1,'data'=>$result['data']);
		}else{
			return array('status'=>0);
		}

	}
}